/**
 * Copyright 2005 SIB Framework

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
 */
package org.sibframework.sda.dbmodel;

import java.io.Serializable;
import java.math.BigDecimal;

public class Column implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 4216019521629409648L;
	//field for db
	private String name = null;
	private String type = null;
	private String javaType = null;
	private String defaultValue = null;
	/**
	 * 注释
	 */
	private String comments = null;
	private BigDecimal length = null;
	private Integer precision = null;
	private Integer scale = null;
	private Boolean primaryKey= false;
	private Boolean fixed = false;
	private Boolean nullable = false;
	
	/**
	 * commets
	 */
	
	
	private String description = null;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public Boolean isPrimaryKey() {
		return primaryKey;
	}
	public void setPrimaryKey(Boolean isPrimaryKey) {
		this.primaryKey = isPrimaryKey;
	}
	public String getJavaType() {
		return javaType;
	}
	public void setJavaType(String javaType) {
		this.javaType = javaType;
	}
	public String getDefaultValue() {
		return defaultValue;
	}
	public void setDefaultValue(String defaultValue) {
		this.defaultValue = defaultValue;
	}
	public Boolean isFixed() {
		return fixed;
	}
	public void setFixed(Boolean isFixed) {
		this.fixed = isFixed;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public BigDecimal getLength() {
		return length;
	}
	public void setLength(BigDecimal length) {
		this.length = length;
	}
	public Integer getPrecision() {
		return precision;
	}
	public void setPrecision(Integer precision) {
		this.precision = precision;
	}
	public Integer getScale() {
		return scale;
	}
	public void setScale(Integer scale) {
		this.scale = scale;
	}
	
	/**
	 * 注释
	 */
	public String getComments() {
		return comments;
	}
	public void setComments(String comments) {
		this.comments = comments;
	}
	
	
	public Boolean getNullable() {
		return nullable;
	}
	public void setNullable(Boolean nullable) {
		this.nullable = nullable;
	}
	
}
